home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-02-20 | 2.3 KB | [ TEXT/KAHL]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sun Feb 20 18:32:23 1994, modified Sun Feb 20 18:32:23 1994, creator Think C, type ASCII, 1370 bytes "SkelPosRect.c" , at 0x5da 700 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KAHL]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0d 53 6b 65 6c 50 6f | 73 52 65 63 74 2e 63 00 |..SkelPo|sRect.c.| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......| |00000050| 00 00 00 00 00 05 5a 00 | 00 02 bc a9 8d a3 87 a9 |......Z.|........| |00000060| 8d a3 87 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e3 bd 00 00 |........|........| |00000080| 2f 2a 0d 20 2a 20 53 6b | 65 6c 50 6f 73 69 74 69 |/*. * Sk|elPositi| |00000090| 6f 6e 52 65 63 74 28 29 | 0d 20 2a 0d 20 2a 20 50 |onRect()|. *. * P| |000000a0| 6f 73 69 74 69 6f 6e 20 | 61 20 72 65 63 74 61 6e |osition |a rectan| |000000b0| 67 6c 65 20 72 65 6c 61 | 74 69 76 65 20 74 6f 20 |gle rela|tive to | |000000c0| 72 65 66 65 72 65 6e 63 | 65 20 72 65 63 74 61 6e |referenc|e rectan| |000000d0| 67 6c 65 20 73 6f 20 74 | 68 61 74 20 73 70 61 63 |gle so t|hat spac| |000000e0| 65 20 61 62 6f 76 65 2f | 62 65 6c 6f 77 0d 20 2a |e above/|below. *| |000000f0| 20 61 6e 64 20 74 6f 20 | 6c 65 66 74 2f 72 69 67 | and to |left/rig| |00000100| 68 74 20 6f 66 20 72 65 | 63 74 61 6e 67 6c 65 20 |ht of re|ctangle | |00000110| 74 68 61 74 27 73 20 6d | 6f 76 65 64 20 6d 61 69 |that's m|oved mai| |00000120| 6e 74 61 69 6e 73 20 72 | 61 74 69 6f 20 67 69 76 |ntains r|atio giv| |00000130| 65 6e 20 62 79 20 68 52 | 61 74 69 6f 20 61 6e 64 |en by hR|atio and| |00000140| 0d 20 2a 20 76 52 61 74 | 69 6f 2e 20 20 54 68 69 |. * vRat|io. Thi| |00000150| 73 20 69 73 20 75 73 65 | 66 75 6c 20 66 6f 72 20 |s is use|ful for | |00000160| 65 73 74 61 62 6c 69 73 | 68 69 6e 67 20 69 6e 69 |establis|hing ini| |00000170| 74 69 61 6c 20 77 69 6e | 64 6f 77 20 70 6f 73 69 |tial win|dow posi| |00000180| 74 69 6f 6e 73 20 6f 72 | 20 70 6f 73 69 74 69 6f |tions or| positio| |00000190| 6e 69 6e 67 0d 20 2a 20 | 61 6c 65 72 74 73 2f 64 |ning. * |alerts/d| |000001a0| 69 61 6c 6f 67 73 2e 0d | 20 2a 0d 20 2a 20 22 69 |ialogs..| *. * "i| |000001b0| 6e 73 69 64 65 22 20 69 | 73 6e 27 74 20 71 75 69 |nside" i|sn't qui| |000001c0| 74 65 20 74 68 65 20 72 | 69 67 68 74 20 77 6f 72 |te the r|ight wor| |000001d0| 64 2c 20 73 69 6e 63 65 | 20 74 68 65 20 6d 6f 76 |d, since| the mov| |000001e0| 65 64 20 72 65 63 74 61 | 6e 67 6c 65 20 6e 65 65 |ed recta|ngle nee| |000001f0| 64 20 6e 6f 74 0d 20 2a | 20 61 63 74 75 61 6c 6c |d not. *| actuall| |00000200| 79 20 62 65 20 73 6d 61 | 6c 6c 65 72 20 74 68 61 |y be sma|ller tha| |00000210| 6e 20 74 68 65 20 72 65 | 66 65 72 65 6e 63 65 20 |n the re|ference | |00000220| 72 65 63 74 61 6e 67 6c | 65 2e 0d 20 2a 0d 20 2a |rectangl|e.. *. *| |00000230| 20 45 78 61 6d 70 6c 65 | 73 3a 0d 20 2a 0d 20 2a | Example|s:. *. *| |00000240| 20 43 65 6e 74 65 72 20 | 61 20 72 65 63 74 61 6e | Center |a rectan| |00000250| 67 6c 65 20 69 6e 73 69 | 64 65 20 74 68 65 20 72 |gle insi|de the r| |00000260| 65 66 65 72 65 6e 63 65 | 20 72 65 63 74 61 6e 67 |eference| rectang| |00000270| 6c 65 3a 0d 20 2a 09 53 | 6b 65 6c 50 6f 73 69 74 |le:. *.S|kelPosit| |00000280| 69 6f 6e 52 65 63 74 20 | 28 26 72 65 66 2c 20 26 |ionRect |(&ref, &| |00000290| 72 2c 20 46 69 78 52 61 | 74 69 6f 20 28 31 2c 20 |r, FixRa|tio (1, | |000002a0| 32 29 2c 20 46 69 78 52 | 61 74 69 6f 20 28 31 2c |2), FixR|atio (1,| |000002b0| 20 32 29 29 3b 0d 20 2a | 0d 20 2a 20 4c 65 61 76 | 2));. *|. * Leav| |000002c0| 65 20 31 2f 33 20 6f 66 | 20 76 65 72 74 69 63 61 |e 1/3 of| vertica| |000002d0| 6c 20 73 70 61 63 65 20 | 61 62 6f 76 65 20 70 6f |l space |above po| |000002e0| 73 69 74 69 6f 6e 65 64 | 20 72 65 63 74 61 6e 67 |sitioned| rectang| |000002f0| 6c 65 2c 20 32 2f 33 20 | 6f 66 20 73 70 61 63 65 |le, 2/3 |of space| |00000300| 20 62 65 6c 6f 77 3a 0d | 20 2a 09 53 6b 65 6c 50 | below:.| *.SkelP| |00000310| 6f 73 69 74 69 6f 6e 52 | 65 63 74 20 28 26 72 65 |ositionR|ect (&re| |00000320| 66 2c 20 26 72 2c 20 46 | 69 78 52 61 74 69 6f 20 |f, &r, F|ixRatio | |00000330| 28 31 2c 20 32 29 2c 20 | 46 69 78 52 61 74 69 6f |(1, 2), |FixRatio| |00000340| 20 28 31 2c 20 33 29 29 | 3b 0d 20 2a 0d 20 2a 20 | (1, 3))|;. *. * | |00000350| 41 6c 67 6f 72 69 74 68 | 6d 20 6d 61 79 20 6e 6f |Algorith|m may no| |00000360| 74 20 77 6f 72 6b 20 63 | 6f 72 72 65 63 74 6c 79 |t work c|orrectly| |00000370| 20 69 66 20 72 65 63 74 | 73 20 68 61 76 65 20 6e | if rect|s have n| |00000380| 65 67 61 74 69 76 65 20 | 63 6f 6f 72 64 69 6e 61 |egative |coordina| |00000390| 74 65 73 2e 0d 20 2a 2f | 0d 0d 23 20 69 6e 63 6c |tes.. */|..# incl| |000003a0| 75 64 65 09 3c 46 69 78 | 4d 61 74 68 2e 68 3e 0d |ude.<Fix|Math.h>.| |000003b0| 0d 23 20 69 6e 63 6c 75 | 64 65 09 22 54 72 61 6e |.# inclu|de."Tran| |000003c0| 73 53 6b 65 6c 2e 68 22 | 0d 0d 0d 70 61 73 63 61 |sSkel.h"|...pasca| |000003d0| 6c 20 76 6f 69 64 0d 53 | 6b 65 6c 50 6f 73 69 74 |l void.S|kelPosit| |000003e0| 69 6f 6e 52 65 63 74 20 | 28 52 65 63 74 20 2a 72 |ionRect |(Rect *r| |000003f0| 65 66 52 65 63 74 2c 20 | 52 65 63 74 20 2a 72 2c |efRect, |Rect *r,| |00000400| 20 46 69 78 65 64 20 68 | 52 61 74 69 6f 2c 20 46 | Fixed h|Ratio, F| |00000410| 69 78 65 64 20 76 52 61 | 74 69 6f 29 0d 7b 0d 73 |ixed vRa|tio).{.s| |00000420| 68 6f 72 74 09 68 4f 66 | 66 2c 20 76 4f 66 66 3b |hort.hOf|f, vOff;| |00000430| 0d 0d 09 2f 2a 20 61 6c | 69 67 6e 20 74 6f 70 6c |.../* al|ign topl| |00000440| 65 66 74 20 6f 66 20 72 | 65 63 74 73 20 28 73 69 |eft of r|ects (si| |00000450| 6d 70 6c 69 66 69 65 73 | 20 63 61 6c 63 75 6c 61 |mplifies| calcula| |00000460| 74 69 6f 6e 73 29 20 2a | 2f 0d 0d 09 4f 66 66 73 |tions) *|/...Offs| |00000470| 65 74 52 65 63 74 20 28 | 72 2c 20 72 65 66 52 65 |etRect (|r, refRe| |00000480| 63 74 2d 3e 6c 65 66 74 | 20 2d 20 72 2d 3e 6c 65 |ct->left| - r->le| |00000490| 66 74 2c 20 72 65 66 52 | 65 63 74 2d 3e 74 6f 70 |ft, refR|ect->top| |000004a0| 20 2d 20 72 2d 3e 74 6f | 70 29 3b 0d 0d 09 2f 2a | - r->to|p);.../*| |000004b0| 20 63 61 6c 63 75 6c 61 | 74 65 20 6f 66 66 73 65 | calcula|te offse| |000004c0| 74 73 20 69 6e 20 65 61 | 63 68 20 64 69 72 65 63 |ts in ea|ch direc| |000004d0| 74 69 6f 6e 20 66 6f 72 | 20 67 69 76 65 6e 20 72 |tion for| given r| |000004e0| 61 74 69 6f 73 20 2a 2f | 0d 0d 09 68 4f 66 66 20 |atios */|...hOff | |000004f0| 3d 20 46 69 78 32 4c 6f | 6e 67 20 28 46 69 78 4d |= Fix2Lo|ng (FixM| |00000500| 75 6c 20 28 4c 6f 6e 67 | 32 46 69 78 20 28 28 6c |ul (Long|2Fix ((l| |00000510| 6f 6e 67 29 20 28 72 65 | 66 52 65 63 74 2d 3e 72 |ong) (re|fRect->r| |00000520| 69 67 68 74 20 2d 20 72 | 2d 3e 72 69 67 68 74 29 |ight - r|->right)| |00000530| 29 2c 20 68 52 61 74 69 | 6f 29 29 3b 0d 09 76 4f |), hRati|o));..vO| |00000540| 66 66 20 3d 20 46 69 78 | 32 4c 6f 6e 67 20 28 46 |ff = Fix|2Long (F| |00000550| 69 78 4d 75 6c 20 28 4c | 6f 6e 67 32 46 69 78 20 |ixMul (L|ong2Fix | |00000560| 28 28 6c 6f 6e 67 29 20 | 28 72 65 66 52 65 63 74 |((long) |(refRect| |00000570| 2d 3e 62 6f 74 74 6f 6d | 20 2d 20 72 2d 3e 62 6f |->bottom| - r->bo| |00000580| 74 74 6f 6d 29 29 2c 20 | 76 52 61 74 69 6f 29 29 |ttom)), |vRatio))| |00000590| 3b 0d 0d 09 2f 2a 20 6d | 6f 76 65 20 72 65 63 74 |;.../* m|ove rect| |000005a0| 20 62 79 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 | by appr|opriate | |000005b0| 61 6d 6f 75 6e 74 20 2a | 2f 0d 0d 09 4f 66 66 73 |amount *|/...Offs| |000005c0| 65 74 52 65 63 74 20 28 | 72 2c 20 68 4f 66 66 2c |etRect (|r, hOff,| |000005d0| 20 76 4f 66 66 29 3b 0d | 7d 0d 00 00 00 00 00 00 | vOff);.|}.......| |000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000600| 00 00 01 00 00 00 02 76 | 00 00 01 76 00 00 00 46 |.......v|...v...F| |00000610| fd 00 02 80 00 bf fc 7f | fd 00 01 00 00 00 03 80 |........|........| |00000620| 00 00 07 c0 00 00 0f e0 | 00 00 1f f0 00 00 3f f8 |........|......?.| |00000630| 0d 53 6b 65 6c 50 6f 73 | 52 65 63 74 2e 63 02 00 |.SkelPos|Rect.c..| |00000640| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00000650| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000670| 00 00 a9 9f 75 92 00 00 | 00 00 00 00 02 bc 3f fe |....u...|......?.| |00000680| 00 00 0f fc 00 00 07 f0 | 00 00 03 e0 00 bf ff ff |........|........| |00000690| fd bf fe ff fd bf fc 7f | fd 00 00 01 00 1f ff fc |........|........| |000006a0| 00 10 00 06 00 10 00 05 | 00 10 00 04 80 10 00 04 |........|........| |000006b0| 40 10 00 04 20 10 00 07 | f0 10 00 00 10 10 00 00 |@... ...|........| |000006c0| 10 10 00 00 10 10 00 00 | 10 10 00 00 10 10 00 00 |........|........| |000006d0| 10 10 00 00 10 10 00 00 | 10 10 00 00 10 10 00 00 |........|........| |000006e0| 10 10 00 00 10 10 00 00 | 10 10 00 00 10 10 00 00 |........|........| |000006f0| 10 10 00 00 10 10 00 00 | 10 10 00 00 10 10 00 00 |........|........| |00000700| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....| |00000710| 03 56 00 00 03 56 00 00 | 00 10 00 04 00 09 00 00 |.V...V..|........| |00000720| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000760| 04 00 00 04 00 00 00 48 | 00 48 00 00 00 00 02 db |.......H|.H......| |00000770| 02 40 ff e7 ff ee 02 ff | 02 52 1f 03 05 28 03 fc |.@......|.R...(..| |00000780| 00 01 00 00 01 2c 01 2c | 00 00 00 00 0b e7 09 60 |.....,.,|.......`| |00000790| 01 2c 00 2d 05 a0 5e ec | 00 26 04 01 01 01 00 18 |.,.-..^.|.&......| |000007a0| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........| |000007b0| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000007d0| 00 00 01 00 00 02 41 00 | 00 00 00 04 00 09 00 00 |......A.|........| |000007e0| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000820| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000850| 00 00 00 00 00 00 00 00 | 00 1c 00 01 00 00 03 57 |........|.......W| |00000860| 00 00 03 67 11 53 6b 65 | 6c 50 6f 73 69 74 69 6f |...g.Ske|lPositio| |00000870| 6e 52 65 63 74 00 00 00 | 01 00 00 00 02 76 00 00 |nRect...|.....v..| |00000880| 01 76 00 00 00 46 00 3b | 9c 74 11 a2 00 00 00 1c |.v...F.;|.t......| |00000890| 00 46 00 01 42 42 53 52 | 00 00 00 12 4d 50 53 52 |.F..BBSR|....MPSR| |000008a0| 00 00 00 1e 01 03 ff ff | 00 00 00 00 00 00 00 00 |........|........| |000008b0| 03 ef ff ff 00 00 01 56 | 00 00 00 00 00 00 00 00 |.......V|........| |000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+